package com.awanp3.nimbus.base.domain.bo;

import com.awanp3.nimbus.base.domain.BasePlant;
import com.awanp3.nimbus.common.core.validate.AddGroup;
import com.awanp3.nimbus.common.core.validate.EditGroup;
import com.awanp3.nimbus.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 工厂信息业务对象 base_plant
 *
 * @author 20014170
 * @date 2025-08-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BasePlant.class, reverseConvertGenerate = false)
public class BasePlantBo extends BaseEntity {

    /**
     * 工厂ID
     */
    private Long plantId;

    /**
     * 工厂编码
     */
    @NotBlank(message = "工厂编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String plantCode;

    /**
     * 工厂名称
     */
    @NotBlank(message = "工厂名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String plantName;

    /**
     * 工厂类型（FG成品 SFG半成品 SP备件）
     */
    @NotBlank(message = "工厂类型（FG成品 SFG半成品 SP备件）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String plantType;

    /**
     * 公司编码
     */
    @NotBlank(message = "公司编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String companyCode;

    /**
     * 电话
     */
    private String phone;

    /**
     * 地址
     */
    private String address;

    /**
     * 部门状态（0正常 1停用）
     */
    @NotBlank(message = "部门状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    private String remark;

}
